import {
  Button,
  Form,
  Field,
  CellGroup,
  Cell,
  Image as VanImage,
  Icon,
  Uploader,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  Picker,
  Popup,
  Space,
} from "vant";

const components = [
  Button,
  Form,
  Field,
  CellGroup,
  Cell,
  VanImage,
  Icon,
  Uploader,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  Picker,
  Popup,
  Space,
];

export function register(app) {
  components.forEach((item) => {
    app.component(item.name, item);
  });
}
